<template>
  <div class="audit-agentCancel-view">

    <el-form
      :inline="true"
    >

      <el-row>

        <el-col :span="8">
          <el-form-item label="流程编号">
            {{ detailData.processNo }}
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="创建时间">
            {{ dateFormat('yyyy-mm-dd',detailData.startTime) }}
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item label="创建人">
            {{ detailData.initiator }}
          </el-form-item>
        </el-col>

      </el-row>

    </el-form>

    <item-title title="代理商信息" />

    <el-form :inline="true" label-position="right" size="small" class="filter-form-inline">
      <el-row style="margin-left: 0px;margin-right:0px;">
        <el-col :span="8">
          <el-form-item label="代理商编号：" style="width: 100%;">
            <span>{{ datas.agentNumber }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="代理商名称：" style="width: 100%;">
            <span>{{ datas.agentName }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="代理商级别：" style="width: 100%;">
            {{ getLabel('agent_level',datas.agentLevel) }}
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="所在地区：" style="width: 100%;">
            {{ datas.provinceName }}/{{ datas.cityName }}/{{ datas.areaName }}
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="详细地址：" style="width: 100%;">
            <span>{{ datas.address }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="统一社会信用代码：" style="width: 100%;">
            <span>{{ datas.creditCode }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="联系人：" style="width: 100%;">
            <span>{{ datas.userName }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="联系电话：" style="width: 100%;">
            <span>{{ datas.tel }}</span>
          </el-form-item>
        </el-col>

      </el-row>
    </el-form>

  </div>
</template>

<script>

import {defineComponent, reactive, toRefs} from 'vue'

export default defineComponent({
  name: 'AgentCancel',
  props: {
    props: {
      detailData: {
        type: Object,
        default: {}
      }
    },
  },
  setup() {
    var data = reactive({
      datas: {}
    })

    return {
      ...toRefs(data)
    }
  }
})
</script>

<style scoped>

</style>
